import QtQuick 2.15
import QtQuick.Controls 2.15

Item {
    visible: true
    width: 640
    height: 480

    Text {
        id: dataDisplay
        text: "Joystick data will appear here"
        anchors.centerIn: parent
        font.pixelSize: 20
    }

    Connections {
        target: joystickReader
        function onJoystickDataReceived(data) {
            dataDisplay.text = data
        }
    }
}
